package com.kuwou.workobject.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("rank_list_comment")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Comment {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("`user_name`")
    private String userName;

    @TableField("`content`")
    private String content;

    @TableField("`posted_time`")
    private String postedTime;

    @TableField("`rank_list_id`")
    private int rankListId;

    @TableField("`type`")
    private String type;

    public Comment(String userName, String content, String postedTime, int rankListId, String type) {
        this.userName = userName;
        this.content = content;
        this.postedTime = postedTime;
        this.rankListId = rankListId;
        this.type = type;
    }
}
